#include <stdio.h>
#include <string.h>
int main(){
	char a[40];
	char b[20];
	int i,len;
	gets(a);
	gets(b);
	len = strlen(a);
	while(i<sizeof(b)/sizeof(b[1])){
		a[len+i] = b[i];
		i++;
	}a[len+i] = '\0';
	puts(a);
	return 0;
}
